<?php
require_once './header.php';
?>

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="initial-scale=1.0,width=device-width,user-scalable=0,maximum-scale=1.0"/>
    <title>报名海报制作</title>
    <link rel="stylesheet" href="./css/base.css">
    <link rel="stylesheet" href="./css/index.css">
    <div id='wx_pic' style='margin:0 auto;display:none;'>
        <img src='/images/logoL.png' />
    </div>
    <script>
        function adapte() {//适配
            var designWidth = 1080, rem2px = 100;
            document.documentElement.style.fontSize = window.innerWidth / designWidth * rem2px + "px";
        }
        adapte();
    </script>
</head>
<body style="overflow-x: hidden;">
<?php
if (isset($_GET['pn'])) {
    $pn = urldecode($_GET['pn']);
    $image_url = $pn;
} else {
    exit('非法访问');
}
if (isset($_SESSION['f-uid'])) {
$g_uid = $_GET['uid'];

if (isset($_SESSION['f-uid'])){
if ($_SESSION['f-uid'] == $g_uid){
?>
<div class="share-cover cover fs36">
    <?php
    }else{
    ?>
    <div class="share-cover cover fs36" style="display: none;">
        <?php
        }
        }
        }else{
        ?>
        <div class="share-cover cover fs36" style="display: none;">
            <?php
            }
            ?>
            <div class="a">知道了</div>
            <img class="b" src="./img/ball.png" alt="ball">
            <img class="d" src="./img/link.png" alt="link">
            <p class="c">点击右上角分享链接</p>
        </div>
        <div class="share">
            <img src="<?= $image_url ?>" alt="">
        </div>
        <script src='./script/jquery.js'></script>
        <script src='./script/index.js'></script>
        <script>
            $(".a").click(function () {
                $(".share-cover.cover.fs36").css("display", "none")
            })
        </script>
</body>
</html>
<?php
require_once './footer.php';
unset($_SESSION['save']);
unset($_SESSION['f-uid']);
unset($_SESSION['f-fid']);
unset($_SESSION['image-bg-id']);
unset($_SESSION['image-title-id']);
unset($_SESSION['image-bg']);
unset($_SESSION['image-title']);
unset($_SESSION['a1']);
unset($_SESSION['a2']);
unset($_SESSION['b1']);
unset($_SESSION['listArray']);
unset($_SESSION['image-format-id']);
unset($_SESSION['make-done-poster']);
unset($_SESSION['text1']);
unset($_SESSION['text2']);
unset($_SESSION['text3']);
unset($_SESSION['title']);
unset($_SESSION['image-logo']);
unset($_SESSION['poster-size-kb']);
unset($_SESSION['code']);
unset($_SESSION['tp']);